<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<%@ include file="/view/common/head.jsp" %>
		<link href="js/umeditor1_2_2/themes/default/css/umeditor.min.css" rel="stylesheet">
	</head>
	<body>
    <!-- Fixed navbar -->
   	<%@ include file="/view/common/nav.jsp" %>

    <div class="container">
    	<div class="row">
    		<div class="col-sm-12 col-md-8">
    			<div class="box">
    				<div class="cell">
						<a href="">首页</a>
						<span class="chevron">››&nbsp;</span>
						查看文章
						<c:if test="${isAuthor}">
							<span class="pull-right">
								<a href="article/recruitment/${article.id}">编辑文章</a>
							</span> 
						</c:if>
						<h1 id="topic_title">${article.title}</h1>
						<small class="topic-meta">
							发布人：${article.createUserName}&nbsp;&nbsp;
							发布时间：${fn:substring(article.createTime,0,16)}							</small>
					</div>
					<div class="inner">
						<div class="content topic_content">
							${article.content}
						</div>
					</div>
    			</div>
    		</div>
    		<div class="col-sm-12 col-md-4">
    			<%@ include file="/view/common/about.jsp"%>
    		</div>
    	</div>
    </div> 
    <%@ include file="/view/common/foot.jsp" %>
  	<script src="js/umeditor1_2_2/umeditor.config.js"></script>
	<script src="js/umeditor1_2_2/umeditor.min.js"></script>
	<script>
		$(function(){
			var um = UM.getEditor('myEditor');
			$('#submit_form').click(function(){
				$('#content').val(um.getContent());
				$('#form_act').submit();
			});
		})
	</script>
</body></html>